package com.lsa.skienna.challenge.chap8;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int i,j; /* counters */
		int n = 3, m = 3;
//		for (i=1; i<=n; i++)
//		for (j=1; j<=m; j++)
//		{
//			int x = i;
//			int y = j + (m+1-2*j) * ((i+1) % 2);
//			System.out.println(x + " " + y);
//		}
		
		for (i=1; i<=n; i++)
			for (j=1; j<=m; j++) {
				int x= i;
				int y= j;
				System.out.println(x + " " + y);
			}
	}
}
